<div id="examPrepare" class="panel">
    <div class="panel-body">
        <div class="right ">
            <div class="top"  >
                <b>考前辅导</b>
                <!--<div ng-repeat="item in data.terms" ng-if="item.id==data.currTerm"><i></i>本学期共有<span>{{item.scores.length}}</span>门课程</div>-->
            </div>
            <div class="bottom">
                <div class="buttonGroupDirective" >
                    <button type="button" class="btn " ng-repeat="item in data.terms" ng-class="{'active':item.id==data.currTerm}" ng-click="showTerm(item.id,$index)">{{item.name}}</button>
                </div>
                <div class="courses clearfix" ng-repeat="item in data.terms" ng-if="item.id==data.currTerm">
                    <p class="pull-left" >
                        <span ng-class="{'active':$index==num}" ng-repeat="list in item.scores" ng-click="courseSelect($index,list.courseId)">{{list.courseName}}</span>
                    </p>
                    <div class="btn-group pull-right">
                        <button type="button" class="btn btn-default " ng-class="{'active':activeModule==1}" ng-click="stimulaterExam(1)">模拟试卷</button>
                        <button type="button" class="btn btn-default" ng-class="{'active':activeModule==0}" ng-click="exerciseWrong(0)">错题集</button>
                    </div>
                </div>
            </div>
        </div>
        <div class="pageContainer">
        <div ng-if="paperData.types==null" style="height:300px;line-height:300px;text-align:center">
            暂无相关习题！
        </div>
        <div ng-show="paperData.types!=null">
        <form  ng-submit="formSubmit()" >
            <div class="singleSelection" ng-repeat="item in paperData.types" ng-if="item.exerciseList.length">
                <p>{{viewBag.chineseNums[item.index]}}、{{item.name}}</p>
                <div class="workpaperItem" ng-repeat="exercise in item.exerciseList">
                    <div class="form-group">{{$index+1}}、
                        <span ng-if="exercise.name.indexOf('/public/')<0">{{exercise.name}}</span>
                        <img ng-if="exercise.name.indexOf('/public/')>=0" ng-src="{{viewBag.setup.staticDomain+exercise.name}}" />
                    </div>
                    <div class="form-group" ng-if="item.kind == 0">
                        <input type="text" name="{{exercise.id}}" style="width:100%" size="100" />
                    </div>
                    <div class="form-group" ng-if="item.kind == 1">
                        <textarea name="{{exercise.id}}"></textarea>
                    </div>
                    <div class="form-group" ng-repeat="option in exercise.options" ng-if="item.kind>1">
                            <label  ng-if="item.kind==2">
                            <input type="radio" name="{{exercise.id}}"  value="{{option.id}}">
                            {{viewBag.englishNums[$index]}}、
                            <span ng-if="option.content.indexOf('/public/')<0">{{option.content}}</span>
                            <img ng-if="option.content.indexOf('/public/')>=0" ng-src="{{viewBag.setup.staticDomain+option.content}}" />
                            <span class="text-success" ng-show="showRightAnswer">{{option.answer? "(正确答案)" : ""}}</span></label>    
                            </label>
                            <label ng-if="item.kind==3">
                                <input type="checkbox" name="{{exercise.id}}" value="{{option.id}}" />{{rootViewBag.englishNums[$index]}}、
                            <span ng-if="option.content.indexOf('/public/')<0">{{option.content}}</span>
                            <img ng-if="option.content.indexOf('/public/')>=0" ng-src="{{rootData.setup.staticDomain+option.content}}"  />
                            <span class="text-success" ng-show="showRightAnswer">{{option.answer ? "(正确答案)" : ""}}</span>
                            </label>
                    </div> 
                </div> 
            </div>
            <div class="form-group btnContainer">
                <button type="button" class="btn  " ng-click="showRight()" ng-bind="(showRightAnswer?'隐藏':'显示')+'正确答案'"></button>
            </div>
        </form>
        </div>
    </div>
    </div>
    
</div>